package br.com.rnavarro.padroes.estrutural.facade;

public class CoordenadaCartesiana 
{
	private double x;
	private double y;
	
	public CoordenadaCartesiana(double x, double y) {
		this.x = x;
		this.y = y;
	}
	public void mover(int distanciaX, int distanciaY)
	{
		x += distanciaX;
		y += distanciaY;
	}
	
	public double x() 
	{
		return x;
	}
	
	public double y() 
	{
		return y;
	}
	
	public String toString()
	{
		return "(" + x + "," + y + ")";
	}
}
